package com.tqjc.system.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tqjc.system.common.entity.BO.CarExecuteInfoBO;
import com.tqjc.system.common.entity.BO.TaskMaterialBO;
import com.tqjc.system.common.entity.VO.AddTaskVO;
import com.tqjc.system.system.entity.SysAddDetailTaskEntity;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * @author 86195
 * @version 1.0
 * @description 加料任务子表dao
 * @date 2023/10/16 15:09
 */
public interface SysAddDetailTaskDao extends BaseMapper<SysAddDetailTaskEntity> {

    /**
     * 根据taskid获取任务物料编码
     * @param taskId
     * @return
     */
    List<String> getMaterialList(String taskId);

    List<TaskMaterialBO> sortSpanTaskMaterialList(Map map);


    List<SysAddDetailTaskEntity> getDetailTaskInfo(String tankCarNo);

    List<AddTaskVO> getPrimaryTaskInfoByTankCarNo(String tankCarNo);

    List<CarExecuteInfoBO> getCarExecuteInfo(Map map);
}
